﻿using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Sys.Core.Models.VO
{
    public class MailSentItemVo
    {
        [Display(Name = "编号", ShortName = "编号"), Column("messageId")]
        public string MessageId { get; set; }

        [Display(Name = "帐号名", ShortName = "帐号名"), Column("accountName")]
        public string AccountName { get; set; }

        [Display(Name = "模板名", ShortName = "模板名"), Column("templateName")]
        public string TemplateName { get; set; }

        [Display(Name = "数据模型"), Column("data")]
        public string Data { get; set; }

        [Display(Name = "发件人", ShortName = "发件人"), Column("sender")]
        public string Sender { get; set; }

        [Display(Name = "发件人", ShortName = "收件人"), Column("receiver")]
        public string Receiver { get; set; }

        [Display(Name = "标题", ShortName = "标题"), Column("title")]
        public string Title { get; set; }

        [Display(Name = "邮件主体"), Column("body")]
        public string Body { get; set; }

        [Display(Name = "抄送人"), Column("ccList")]
        public string CCList { get; set; }

        [Display(Name = "暗抄人"), Column("bccList")]
        public string BCCList { get; set; }

        [Display(Name = "发送时间", ShortName = "发送时间"), Column("sendTime")]
        public DateTime SendTime { get; set; }

        [Display(Name = "附件地址"), Column("attachments")]
        public object[] Attachments { get; set; }
    }


    public class MailFailItemVo : MailSentItemVo
    {
        [Display(Name = "异常信息"), Column("exception")]
        public string Exception { get; set; }
    }
}
